package com.wu.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.wu.mappers.MartMapper;
import com.wu.pojo.Mart;
import com.wu.service.MartService;

import java.util.List;

/**
@author sun
@date 2022/3/21 - 0:04
*/
@Service
public class MartServiceImpl implements MartService{

    @Resource
    private MartMapper martMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return martMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Mart record) {
        return martMapper.insert(record);
    }

    @Override
    public int insertSelective(Mart record) {
        return martMapper.insertSelective(record);
    }

    @Override
    public Mart selectByPrimaryKey(Integer id) {
        return martMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Mart record) {
        return martMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Mart record) {
        return martMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<Mart> findMart(Mart mart) {
        return martMapper.findMart(mart);
    }

}
